package cn.yitun.chat.yitunserverimbase.dao.userchat;

import cn.yitun.chat.yitunservercommonlib.crud.yitun.CrudDao;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.userchat.UserChatItemDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.userchat.UserChatItemInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.userchat.UserChatItemVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户聊天条目表
 * @author chenyitun
 * @email chenyitun@163.com
 * @date 2020-05-27 14:44:44
 */
@Mapper
public interface UserChatItemDao extends CrudDao<UserChatItemDto, UserChatItemInfo, UserChatItemVo> {

	int absDel(Long id);

	int batchAbsDel(Long[] ids);

	/**
	 * 获取聊天条目
	 * @param userChatContentIds
	 * @return
	 */
	List<UserChatItemVo> getUserChatItemList(@Param("list") List<Long> userChatContentIds);

	/**
	 * 保存列表
	 * @param list
	 * @return
	 */
    int saveList(@Param("list") List<UserChatItemDto> list);
}
